package code.network;


public class AddressUtil {

	public short getAddressFromDatagramPacket(String ip) {
		String[] splittedIP = ip.split("\\.");
		return Short.parseShort(splittedIP[splittedIP.length - 1]);
	}
	
	public String makeAddressForInet(short address, String subNet) {		
		return subNet + address;
	}
}
